﻿@model CMSApplication.Areas.Administration.Models.CustomerModel
@{
    ViewBag.Title = "CS Khach hang";
}
<script></script>
<div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-documents"></div>
            <h1>Chỉnh sửa khách hàng: Mã = @Model.Id</h1>
            <div class="clear"></div>
        </div>
        <div class="block-fluid">
            @using (Html.BeginForm("AddOrUpdate", "Customer", FormMethod.Post, new { enctype = "multipart/form-data", @id = "validation" }))
            {
                <div class="warning-area"></div>
                @Html.HiddenFor(m => m.Id)
                @Html.HiddenFor(m => m.Active)
                @Html.HiddenFor(m => m.CreatedOn)
                <div class="row-form">
                    <div class="span2">Tên</div>
                    <div class="span10">@Html.TextBoxFor(x => x.Name, new { })</div>
                    <div class="clear"></div>
                </div>
                <div class="row-form">
                    <div class="span2">Loại</div>
                    <div class="span10">@Html.DropDownListFor(x => x.Type, Model.SLType)</div>
                    <div class="clear"></div>
                </div>
                <div class="row-form">
                    <div class="span2">Địa chỉ</div>
                    <div class="span10">@Html.TextBoxFor(x => x.Addr, new { })</div>
                    <div class="clear"></div>
                </div>
                <div class="row-form">
                    <div class="span2">Điện thoại</div>
                    <div class="span10">@Html.TextBoxFor(x => x.Phone, new { })</div>
                    <div class="clear"></div>
                </div>
                <div class="row-form">
                    <div class="span2">Ngày tạo</div>
                    <div class="span10"><input type="text" value="@string.Format("{0:dd/MM/yyyy}", Model.CreatedOn)" disabled="disabled"></div>
                    <div class="clear"></div>
                </div>
                <div class="row-form">
                    <div class="span2"></div>
                    <div class="span10">
                        <input type="submit" class="btn btn-info btnSubmit" value="Lưu lại" />
                    </div>
                    <div class="clear"></div>
                </div>
            }
        </div>
    </div>
</div>
